package com.js.study.datastructs.version2;

/**
 * @Author JiangSen
 * @DATE 2023/12/24 9:25
 */
public interface IArray<E> {
    int getSize();
    int getCapacity();
    boolean isEmpty();
    boolean isFull();
    void addFirst(E e);
    void addLast(E e);
    void add(int index,E e);
    public void resize(int newCapacity);

    E removeFirst();
    E remove(int index);
    E removeLast();
    E set(int index, E e);
    E get(int index);
    boolean cotain(E e);
    void pritn();
    void printReverse();

}
